// export const APP_NAME = ''
export const weatherKey = 'Susvs-rNuXs4ltrA-'
import {config} from './config'
// 支付类型支付类型 1积分 2微信 3积分+微信
export const transformerTypes = ['scaleAndFade','accordion','threeD','zoomIn','zoomOut','deepthPage']
export const layoutTypes = ['transformer','normal','stackLeft','stackRight','tinder']
// 积分消费类型
export const moneyLogType = [{
		label: "兑换成功",
		value: '1',
		symbol: "-",

	},
	{
		label: "取消兑换",
		value: '2',
		symbol: "+",
	},
	{
		label: "失效",
		value: '3',
		symbol: "-",
	}
]

// 商品分类
export const commodityType = [{
	icon: config.imgDomain + '/static/images/goods/ms.png',
	name: '全部商品',
}, {
	icon: config.imgDomain + '/static/images/goods/ms.png',
	name: '餐饮美食',
}, {
	icon: config.imgDomain + '/static/images/goods/fw.png',
	name: '便捷服务'
}, {
	icon: config.imgDomain + '/static/images/goods/ls.png',
	name: '时尚零售'
}, {
	name: '个性美妆',
	icon: config.imgDomain + '/static/images/goods/mz.png',
}, {
	name: '商超购物',
	icon: config.imgDomain + '/static/images/goods/gw.png',
}, {
	name: '电子充值',
	icon: config.imgDomain + '/static/images/goods/sm.png',
}, {
	name: '康体养生',
	icon: config.imgDomain + '/static/images/goods/ys.png',
}, {
	name: '休闲娱乐',
	icon: config.imgDomain + '/static/images/goods/yl.png',
}, ]

// 瀑布流模拟数据
export const waterFallList = [{
	image: config.imgDomain + '/static/images/goods/w1.png',
	nickName: '全部商品wewqewqewqewqe',
}, {
	image: config.imgDomain + '/static/images/goods/ms.png',
	nickName: '餐饮美食',
}, {
	image: config.imgDomain + '/static/images/goods/w2.png',
	nickName: '医疗服务ddfdf发生的官方送点发放给分公司反伤打的是放大法第三方213213213231231232'
}, {
	image: config.imgDomain + '/static/images/goods/ls.png',
	nickName: '时尚零售'
}, {
	nickName: '个性美妆',
	image: config.imgDomain + '/static/images/goods/w3.png',
}, {
	nickName: '商超购物',
	image: config.imgDomain + '/static/images/goods/gw.png',
}, {
	nickName: '手机数码',
	image: config.imgDomain + '/static/images/goods/w4.png',
}, {
	nickName: '康体养生',
	image: config.imgDomain + '/static/images/goods/ys.png',
}, {
	nickName: '休闲娱乐',
	image: config.imgDomain + '/static/images/goods/yl.png',
}, ]
export const seedingType = [{
	icon: config.imgDomain + '/static/images/goods/ms.png',
	name: '种草推荐',
}, {
	icon: config.imgDomain + '/static/images/goods/ms.png',
	name: '民航资讯',
}, {
	icon: config.imgDomain + '/static/images/goods/fw.png',
	name: '航空旅行常识'
}]
export const goodsList = [

]
// 轮播图跳转类型v1
export const linkType = [{
		label: "article",
		value: '/seeding/seeding/article?id='
	},
	{
		label: "points shop",
		value: '/pages/goods/goods-details?id='
	},
	{
		label: "goods list",
		value: '/pages/point-reward/goods-list?id='
	},
]
// 轮播图跳转类型v2
export const getlink = function(e = '',that) {
	console.log(e,'infoeeee');
	if (e.indexOf(':') > -1) {
		let info = e.split(':')
		console.log(info,'info');
		if(info[0]=='article'){
			that.$navto(`/seeding/seeding/article?id=${info[1]}`)
		}else if(info[0]=='shop'){
			if(info[1]=='index'){
				let pages = getCurrentPages();
				console.log(pages,'获取页面');
				if(pages[pages.length - 1].$page.fullPath=='/pages/index/index'){
					that.$emit('getPageCur', 3) //商城首页
					console.log(pages[pages.length - 1].$page.fullPath,'在constant.js里');
				}else{
					that.$navto(`/pages/index/index?PageCur=3`)
				}
			}else if(info[1]=='list'){
				// 分类
				that.$navto(`/pages/point-reward/goods-list?id=${info[2]}`)
			}else if(info[1]=='special'){
				// 专题 暂无
				that.$navto(`/pages/goods/goods-special?id=${info[2]}`)
			}else if(info[1]=='product'){
				// 详情
				that.$navto(`/pages/goods/goods-details?id=${info[2]}`)
			}
		}else if(info[0]=='voucher'){
			if(info[1]=='list'){
				that.$navto('/pages/home/e-brokers/index', false, 0)
			}
		}
		
	}

}


// 消息tabs
export const messagetabsType = [{
		name: config.imgDomain + '/static/images/homes/message-sys.png',
		title: '系统消息'
	}, {
		name: config.imgDomain + '/static/images/homes/message-kf.png',
		title: '客服消息'
	},

	// {
	// 	name: config.imgDomain + '/static/images/homes/message-dz.png',
	// 	title: '点赞收藏'
	// }, 


]
// 消息type
export const messageType = [{
	value: 1,
	label: '券使用记录',
	imgUrl: 'money'
}, {
	value: 2,
	label: '转积分记录',
	imgUrl: 'enery'
}, {
	value: 3,
	label: '转赠记录',
	imgUrl: 'gift'
}, {
	value: 4,
	label: '到期提醒',
	imgUrl: 'day'
}, {
	value: 5,
	label: '快递消息',
	imgUrl: 'day'
}, ]

export const tabbarList = [{ //tab数据
		name: '首页',
		iconNmae: 'home',
		url: '/static/tabbar/index',
	},
	{
		name: '种草',
		iconNmae: 'integral',
		url: '/static/tabbar/tree',
	},
	{
		name: '二维码领券',
		iconNmae: 'grid',
		url: config.imgDomain + '/static/images/index/qr-code',
		bgurl: '/static/tabbar/codebg',
	},
	{
		name: '积分换购',
		iconNmae: 'shopping-cart',
		url: '/static/tabbar/shop',
	},
	{
		name: '我的',
		url: '/static/tabbar/my',
		iconNmae: 'account',
	},
]
// 订单类型
// 1 待支付
// 2 待发货
// 3 待收货
// 4 已完成
// 6 已退款
export const orderType = [{
		label: '待付款',
		value: 1
	},
	{
		label: '待发货',
		value: 2
	},
	{
		label: '待收货',
		value: 3,
	},
	{
		label: '已完成',
		value: 4
	},
	{
		label: '已完成',
		value: 5
	},
	{
		label: '已退货',
		value: 6
	},
	{
		label: '售后',
		value: 7
	},
	{
		label: '已取消',
		value: 9
	}
]

export const CoursePerm = [{
		label: 'VIP',
		value: 'VIP'
	},
	{
		label: '普通用户',
		value: '普通用户'
	},
	{
		label: '全部用户',
		value: '全部用户'
	}
]